package com.demon.mutehelper.viewmodel

import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.ViewModel
import com.demon.mutehelper.bean.MuteRecord
import com.demon.mutehelper.database.AppDatabase
import kotlinx.coroutines.flow.Flow

class MainViewModel(application: Application) : AndroidViewModel(application) {
  private val mDatabase = AppDatabase.getDatabase(application)

  fun getRecordList(): Flow<List<MuteRecord>> = mDatabase.muteRecordDao().getAll()
}